<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/frame/head.jsp"%>
  <body>
    <center>
    	<h3>微信公众平台账号申请</h3>
    	
		<form name="aform" >
		<input name="actionPath" value="app/main/show.jsp" hidden>
			姓名：<input type="text" name="userName"><p>
			手机号码：<input type="text" name="telNum" ><p>
			<button onclick="apply();">提交申请</button>
		</form>
    </center>
    <script type="text/javascript">
    function apply(){
    	telNum = aform.telNum.value ;
    	if(telNum.length!= 11){
    		alert("手机号码不正确。") ;
    		return false;
    	}else{
    		aform.action = aform.actionPath.value ;
    		aform.submit() ;
    	}    		
    }
    
    </script>
  </body>
</html>
